<template>
	<u-modal :show="showModal" @confirm="confirm" :title="title"
	ref="uModal" width="600" @cancel="showModal = false" :asyncClose="true"
	:showCancelButton="true" confirmColor="#DB4836" :confirmText="confirmText">
		<view class="model-slot-content">{{warningTxt}}</view>
	</u-modal>
</template>

<script>
	export default {
		props: {
			title: {
				type: String,
				default: () => {return '提示'}
			},
			warningTxt: {
				type: String,
				default: () => {return '开启后,可以上传图片,请在"系统设置-应用-孝善天长-权限管理"中开启存储权限,或者卸载孝善天长APP,重新安装后同意授权'}
			},
			confirmText: {
				type: String,
				default: () => {return '确定'}
			},
		},
		data() {
			return {
				showModal: false,
			};
		},
		methods: {
			confirm(){
				this.$emit('rh-confirm')
			},
		}
	}
</script>

<style lang="scss" scoped>

</style>
